<?php header("Content-Type:text/html;   charset=utf-8"); ?>
<script type="text/javascript">
	$(function(){
		$("#btnSubmitSelGroup").bind("click",submitSelGroup);
	});		
	function submitSelGroup(){
		var gid = $("#selSelGroup").val();
		if(IsEmpty(gid)){
			alert("用户组不能为空");
			return;
		}
		parent.modifyUserGroup(gid);
		alert("操作成功");
		$("#btnCloseSelGroup").trigger("click");
	}
</script>
<div class="pageContent">
	<form class="pageForm required-validate">
		
		<div class="pageFormContent" style="float: left; width: 500px;"
			layoutH="56">
			<table class="tableNewUser">
				
				<tr>
					<td>用户组名称：</td>
					<td>
					<select id="selSelGroup" style="width:200px">
					<?php 
					foreach ($group as $key => $value){
						print "<option value='$key'>$value</option>";
					}
					?>
					</select>
					</td>
				</tr>
				
				<tr>
					<td colspan="2" style="line-height: 60px">&nbsp;</td>
				</tr>
			</table>
			

			<div class="buttonActive" style="width: 120px; margin-left: 80px;">
				<div class="buttonContent">
					<button id="btnSubmitSelGroup" type="button" style="width: 80px">提 交</button>
				</div>
			</div>

			<div class="button">
				<div class="buttonContent">
					<button id="btnCloseSelGroup" type="button" class="close"
						style="width: 80px">取 消</button>
				</div>
			</div>
		</div>		
	</form>
</div>
